package com.J1ay.carsys.pojo;

import com.J1ay.carsys.utils.Common;
import lombok.Data;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Author J1ay
 * @Date 2021/6/2 22:27
 * @Description 租车记录
 */
@Data
public class BowCar {
    private int bowId;
    private String sn;
    private String UId;
    private int carId;
    private int empId;
    private int bowDay;
    private float bowPrice;
    private Date bowCreate;
    private Date bowEnd;
    private String bowResult="no";
    private String bowStatus="undone";

    @Override
    public String toString() {
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm");
        String time=sdf.format(bowCreate);
        return Common.padString(UId,12)
                + Common.padString(carId+"",10)
                + Common.padString(empId+"",8)
                + Common.padString(bowDay +"",8)
                + Common.padString(bowPrice+"",8)
                + Common.padString(time,20);
    }
}
